package com.sso.oauth.config;

import org.springframework.boot.context.embedded.InitParameterConfiguringServletContextInitializer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Derry Luo on 2019/5/9.
 */
//@Configuration
public class ContextParamConfig {

    @Bean
    public InitParameterConfiguringServletContextInitializer initParamsInitializer() {
        Map<String, String> contextParams = new HashMap<>();
        contextParams.put("authority", "https://login.microsoftonline.com/");
        contextParams.put("tenant", "80ca8ecc-6a59-480c-89ab-486b20aa72cb");
        return new InitParameterConfiguringServletContextInitializer(contextParams);
    }


}
